using System;
using System.Collections.Generic;

namespace Viettel.VOFFICE.DAO.Models
{
    public class Flow
    {
        public Flow()
        {
            this.NodeRelations = new List<NodeRelation>();
            this.Nodes = new List<Node>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public Nullable<bool> IsActive { get; set; }
        public Nullable<bool> IsCommon { get; set; }
        public Nullable<bool> IsReady { get; set; }
        public Nullable<int> DocTypeId { get; set; }
        public System.DateTime CreatedAt { get; set; }
        public System.DateTime UpdatedAt { get; set; }
        public Nullable<System.Guid> CreatorId { get; set; }
        public string WithOutAccent { get; set; }
        public Nullable<bool> IsDefault { get; set; }
        public Nullable<int> DepartmentId { get; set; }
        public virtual DocumentType DocumentType { get; set; }
        public virtual v_Department v_Department { get; set; }
        public virtual ICollection<NodeRelation> NodeRelations { get; set; }
        public virtual ICollection<Node> Nodes { get; set; }
    }
}
